//
//  ZyView.h
//  ShortRent
//
//  Created by ht on 16/6/13.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ZYChoiceView : UIView<UITableViewDelegate,UITableViewDataSource>
{
    UITableView *_tableView;
    UILabel *_tableViewHeadLbl;
    UIView *_backView;
    UIButton *_closetBtn;
    NSInteger  _current;
}

@property (copy,nonatomic) void (^didViewCompletion)(NSIndexPath *indexPath);
@property (copy,nonatomic) NSString *(^cellTitle)(NSIndexPath *indexPath);
@property (copy,nonatomic) NSInteger (^cellCount)(void);

/**
 *  更改头部显示
 */
@property (nonatomic, strong) NSString *titleString;
/**
 *  更改按钮显示
 */
@property (nonatomic, strong) NSString *itemString;



+(ZYChoiceView *)shareChoiceView;
/**
 *  对 ZYChoiceView 进行设置
 *
 *  @param compltion         每行显示的内容
 *  @param comp              显示几行
 *  @param didViewCompletion 点击每行的方法
 */
-(void)zyCellTitle:(NSString *(^)(NSIndexPath *indexPath))cellTitleCompltion
      andCellCount:(NSInteger (^)(void)) cellCountCompltion
        andAction:(void(^)(NSIndexPath *indexPath))didViewCompletion;;

/**
 *  出现
 */
-(void)show;
/**
 *  消失
 */
-(void)dismiss;




@end
